<!doctype html>
<html lang="zh-CH">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
	<title>央票通商城</title>
	<link rel="stylesheet" href="./resource/css/ypt_index.css">
</head>
<body>
<!-- 顶部 -->
@include('common.shop_index_head')
<!-- banner -->
<div class="banner">
	<ul class="slides">
		<li class="active"><a href="ypt_business_shop_list"><img src="./resource/img/banner_1.jpg" alt=""></a></li>
		<li><a href="ypt_business_shop_list"><img src="./resource/img/banner_2.jpg" alt=""></a></li>
		<li><a href="ypt_business_shop_list"><img src="./resource/img/banner_3.jpg" alt=""></a></li>
	</ul>
</div>
<!-- shopcont -->
<div class="shop-cont main">
	<!-- 楼层1 -->
	@foreach($mucaiinfo as $k => $b)
	<div class="floor" id="floor-1">

		<div class="floor-til">
			<h2>
				<span>
1

					F</span>
				{{$b->cate_name}}</h2>
			<a href="/ypt_business_list">更多 &#62</a>

		</div>
		<div class="floor-cont">
			<div class="floor-l left">
				<div class="l-img">
{{--					@foreach($ads as $k=>$v)--}}
					<a href="javascript:;"><img src="" alt=""></a>
					{{--@endforeach--}}
				</div>
				<div class="l-cation">
					@foreach($b->cat_name as $key)
						<a href="/ypt_shop_list?c_id={{$key->c_id}}">{{$key->cate_name}}</a>
					@endforeach
				</div>
			</div>

			<div class="floor-r left">
				@foreach($b->cat_name as $key)
				@foreach( $key->sance as  $be)
						<?php if(!empty($be->img1)){?>
				<div class="floor-shop">
						<div class="shop-img">
							<a href="/ypt_business_shop_list?business_id={{$be->business_id}}"><img src="{{$be->img1}}" alt=""></a>
						</div>
						<div class="shop-info">
							<a href="/ypt_business_shop_list?business_id={{$be->business_id}}" class="img"><img src="{{$be->logo}}" alt="" style="width=:100%;height:auto;"></a>
						</div>
				</div>
							<?php }?>
					@endforeach
				@endforeach
			</div>

		</div>

	</div>
	@endforeach

</div>
<!-- web info -->
<div class="index-info main">
	<div class="index-info-box">
		<h2>海量订单、厂家直供</h2>
		<p>F2C模式，砍掉所有中间环节，价格更透明、更优惠</p>
	</div>
	<img src="./resource/img/index_info.png" alt="">
	<div class="index-info-box">
		<span>全系一线品牌厂家</span>
		<span>携手发展共享未来</span>
	</div>
</div>
<!-- 楼层 -->
<div class="pos-floor">
	<ul>
		<li><a href="javascript:;" class="pos-floor-0"></a></li>
		<li><a href="javascript:;" class="pos-floor-1"></a></li>
		<li><a href="javascript:;" class="pos-floor-2"></a></li>
		<li><a href="javascript:;" class="pos-floor-3"></a></li>
		<li><a href="javascript:;" class="pos-floor-4"></a></li>
		<li><a href="javascript:;" class="pos-floor-5"></a></li>
	</ul>	
</div>
<!-- 底部 -->
<div class="foot">
	<div class="main">
		<div class="left">
			<div class="foot-nav">
				<dl>
				    <dt><span>关于央票通</span></dt>
				    <dd>
				    	<a href="javascript:;" target="_blank">公司简介</a> 
				    	<a href="javascript:;" target="_blank">团队介绍</a>
				    	<a href="javascript:;" target="_blank">加入我们</a>
				    	<a href="javascript:;" target="_blank">联系我们</a>
				    </dd>
				</dl>
				<dl>
				    <dt><span>新手上路</span></dt>
				    <dd>
				    	<a href="javascript:;" target="_blank">新手专区</a> 
				    	<a href="javascript:;" target="_blank">交易安全</a>
				    	<a href="javascript:;" target="_blank">24小时在线帮助</a>
				    	<a href="javascript:;" target="_blank">免费开店</a>
				    </dd>
				</dl>
				<dl>
				    <dt><span>配送方式</span></dt>
				    <dd>
				    	<a href="javascript:;" target="_blank">货到付款</a> 
				    </dd>
				</dl>
				<dl>
				    <dt><span>售后服务与保障</span></dt>
				    <dd>
				    	<a href="javascript:;" target="_blank">保障范围</a> 
				    	<a href="javascript:;" target="_blank">退货退款流程</a>
				    	<a href="javascript:;" target="_blank">服务中心</a>
				    </dd>
				</dl>
				<dl>
				    <dt><span>联系方式</span></dt>
				    <dd>
				    	<a href="javascript:;" target="_blank">180-1866-7777</a>
				    </dd>
				</dl>
			</div>
			<div class="foot-info">
				<p>中企汇（北京）有限公司 京ICP备15043001   Copyright © 2016  yangpiaotong.com 版权所有</p>
			</div>
		</div>
		<div class="foot-code right">
			<img src="./resource/img/foot_code.png" alt="">
		</div>
	</div>
</div>
<script src="./resource/js/ypt_index.js"></script>
<script src="./resource/js/ypt_index_floor.js"></script>
<script src="./resource/js/jquery.flexslider-min.js"></script> <!-- banner -->
<script>	
	$('.banner').flexslider({	//banner轮播
		directionNav: true,
		pauseOnAction: false
	});
	//nav

	for(var i=0;i<$('.all-wrap ul li').length;i++){
		$('.all-wrap ul li').eq(i).addClass("list-"+(i+1)+"");
	};

	for(var i=0;i<$('.shop-cont .floor').length;i++){
		$('.shop-cont .floor').eq(i).addClass("floor-"+(i+1)+"").attr('id',"floor-"+(i+1)+"").find('h2').children('span').html(""+(i+1)+"F");
	};

	$.ajax({
		url: "/adshop_cart",
		type: "POST",
		success: function (msg) {
			if (msg) {
				var arr_src = [];
				$.each(msg,function(index,arr){
					arr_src.push("<a href=\"javascript:;\"><img src="+arr.img+"></a>");
				});
				for(var i=0;i<$('.shop-cont .floor').length;i++){
					$('.shop-cont .floor').eq(i).find('.l-img').html(arr_src[i]);
				};
			};
		}
	});

	//导航 商品全部 隐藏显示
	// var $allW = $('.all-wrap');
	// $allW.hide();
	// $('.nav .nav-all').attr('rel','hide');
	// $('.nav .nav-all').hover(function(){
	// 	$(this).attr('rel','show');
	// 	$allW.show();	
	// },function(){
	// 	$allW.hover(function(){
	// 		$(this).attr('rel','show');
	// 		$allW.show();	
	// 	},function(){
	// 		$(this).attr('rel','hide');
	// 		$allW.hide();	
	// 	});	
	// });
</script>
</body>
</html>